// 消息工具文件
import { ElMessage, ElNotification } from 'element-plus'

// 导出消息函数
export const showMessage = {
  success: (message) => ElMessage.success(message),
  error: (message) => ElMessage.error(message),
  warning: (message) => ElMessage.warning(message),
  info: (message) => ElMessage.info(message),
}

export const showNotification = {
  success: (options) => ElNotification.success(options),
  error: (options) => ElNotification.error(options),
  warning: (options) => ElNotification.warning(options),
  info: (options) => ElNotification.info(options),
}

// 默认导出
export default {
  message: showMessage,
  notification: showNotification,
}
